import Mock from 'mockjs'

Mock.mock('/api/data', (req, res) => {
  return {
    data: ['a', 'b']
  }
})

Mock.mock('/msg', {
  'name': '@name',
  'age|1-100': 100,
  'color': '@color'
})
